<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::CSVMProblem&lt; MatrixT &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_c_s_v_m_problem.html">CSVMProblem</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_c_s_v_m_problem-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::CSVMProblem&lt; MatrixT &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Problem formulation for binary C-SVM problems.  
 <a href="classshark_1_1_c_s_v_m_problem.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_qp_solver_8h_source.html">shark/Algorithms/QP/QpSolver.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ae00fca2fe283929b4eaf80ca74fc4eeb" id="r_ae00fca2fe283929b4eaf80ca74fc4eeb"><td class="memItemLeft" align="right" valign="top">typedef MatrixT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a></td></tr>
<tr class="separator:ae00fca2fe283929b4eaf80ca74fc4eeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a806254ac4b5c6f20caa4134a81b2457e" id="r_a806254ac4b5c6f20caa4134a81b2457e"><td class="memItemLeft" align="right" valign="top">typedef MatrixType::QpFloatType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a806254ac4b5c6f20caa4134a81b2457e">QpFloatType</a></td></tr>
<tr class="separator:a806254ac4b5c6f20caa4134a81b2457e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a24063221b317718fb10aa445b2fc8d76" id="r_a24063221b317718fb10aa445b2fc8d76"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a24063221b317718fb10aa445b2fc8d76">CSVMProblem</a> (<a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a> &amp;<a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">quadratic</a>, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; unsigned int &gt; const &amp;labels, double C)</td></tr>
<tr class="memdesc:a24063221b317718fb10aa445b2fc8d76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setup only using kernel matrix, labels and regularization parameter.  <br /></td></tr>
<tr class="separator:a24063221b317718fb10aa445b2fc8d76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601a22cd57543675bacf599f9cd1fc7c" id="r_a601a22cd57543675bacf599f9cd1fc7c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a601a22cd57543675bacf599f9cd1fc7c">CSVMProblem</a> (<a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a> &amp;<a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">quadratic</a>, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; unsigned int &gt; const &amp;labels, RealVector const &amp;regularizers)</td></tr>
<tr class="memdesc:a601a22cd57543675bacf599f9cd1fc7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setup using kernel matrix, labels and different regularization parameters for positive and negative classes.  <br /></td></tr>
<tr class="separator:a601a22cd57543675bacf599f9cd1fc7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b7aab493bbff7b3308c718c1dcd2370" id="r_a2b7aab493bbff7b3308c718c1dcd2370"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a2b7aab493bbff7b3308c718c1dcd2370">CSVMProblem</a> (<a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a> &amp;<a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">quadratic</a>, RealVector <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a1939be3c160d60bdad3319d2ed82a7e5">linear</a>, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; unsigned int &gt; const &amp;labels, double C)</td></tr>
<tr class="separator:a2b7aab493bbff7b3308c718c1dcd2370"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8b41a5112634a8e39b6f31a71811f92" id="r_ab8b41a5112634a8e39b6f31a71811f92"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#ab8b41a5112634a8e39b6f31a71811f92">dimensions</a> () const</td></tr>
<tr class="separator:ab8b41a5112634a8e39b6f31a71811f92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5abe1188b5f7a69e12248ddf5cc960f" id="r_ac5abe1188b5f7a69e12248ddf5cc960f"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#ac5abe1188b5f7a69e12248ddf5cc960f">boxMin</a> (std::size_t i) const</td></tr>
<tr class="separator:ac5abe1188b5f7a69e12248ddf5cc960f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b1679d10868333bf4d4c8b4b4d37ed6" id="r_a4b1679d10868333bf4d4c8b4b4d37ed6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a4b1679d10868333bf4d4c8b4b4d37ed6">boxMax</a> (std::size_t i) const</td></tr>
<tr class="separator:a4b1679d10868333bf4d4c8b4b4d37ed6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5ac4b6d0fb36dd16b52c733774bbbc0" id="r_af5ac4b6d0fb36dd16b52c733774bbbc0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#af5ac4b6d0fb36dd16b52c733774bbbc0">flipCoordinates</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:af5ac4b6d0fb36dd16b52c733774bbbc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">exchange two variables via the permutation  <br /></td></tr>
<tr class="separator:af5ac4b6d0fb36dd16b52c733774bbbc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a44566d73a4d27244042719707a2779" id="r_a5a44566d73a4d27244042719707a2779"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a5a44566d73a4d27244042719707a2779">scaleBoxConstraints</a> (double factor, double variableScalingFactor)</td></tr>
<tr class="memdesc:a5a44566d73a4d27244042719707a2779"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scales all box constraints by a constant factor and adapts the solution by scaling it by the same factor.  <br /></td></tr>
<tr class="separator:a5a44566d73a4d27244042719707a2779"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a95ba9ddd48a101f849d216a95a4a34db" id="r_a95ba9ddd48a101f849d216a95a4a34db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">quadratic</a></td></tr>
<tr class="memdesc:a95ba9ddd48a101f849d216a95a4a34db"><td class="mdescLeft">&#160;</td><td class="mdescRight">representation of the quadratic part of the objective function  <br /></td></tr>
<tr class="separator:a95ba9ddd48a101f849d216a95a4a34db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1939be3c160d60bdad3319d2ed82a7e5" id="r_a1939be3c160d60bdad3319d2ed82a7e5"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a1939be3c160d60bdad3319d2ed82a7e5">linear</a></td></tr>
<tr class="memdesc:a1939be3c160d60bdad3319d2ed82a7e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linear part of the problem.  <br /></td></tr>
<tr class="separator:a1939be3c160d60bdad3319d2ed82a7e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b38b86e0ec6b023f7012940d4176c03" id="r_a9b38b86e0ec6b023f7012940d4176c03"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a9b38b86e0ec6b023f7012940d4176c03">alpha</a></td></tr>
<tr class="memdesc:a9b38b86e0ec6b023f7012940d4176c03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Solution candidate.  <br /></td></tr>
<tr class="separator:a9b38b86e0ec6b023f7012940d4176c03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83d760d8d7cb69a76756cf8b6a5db469" id="r_a83d760d8d7cb69a76756cf8b6a5db469"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#a83d760d8d7cb69a76756cf8b6a5db469">diagonal</a></td></tr>
<tr class="separator:a83d760d8d7cb69a76756cf8b6a5db469"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaa712b9668b0d27820b0fb274e76d10" id="r_acaa712b9668b0d27820b0fb274e76d10"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#acaa712b9668b0d27820b0fb274e76d10">permutation</a></td></tr>
<tr class="memdesc:acaa712b9668b0d27820b0fb274e76d10"><td class="mdescLeft">&#160;</td><td class="mdescRight">permutation of the variables alpha, gradient, etc.  <br /></td></tr>
<tr class="separator:acaa712b9668b0d27820b0fb274e76d10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class MatrixT&gt;<br />
class shark::CSVMProblem&lt; MatrixT &gt;</div><p>Problem formulation for binary C-SVM problems. </p>
<p>\(max_\alpha - 1/2 \alpha^T K \alpha +  \alpha^Ty\) under constraints: \(l_i &lt;= \alpha_i &lt;= u_i\) \(\sum_i \alpha_i = 0\) </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00246">246</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ae00fca2fe283929b4eaf80ca74fc4eeb" name="ae00fca2fe283929b4eaf80ca74fc4eeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae00fca2fe283929b4eaf80ca74fc4eeb">&#9670;&#160;</a></span>MatrixType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef MatrixT <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;<a class="el" href="_mc_svm_linear_8cpp.html#a88ab98d46276376a56c2a396842cd58e">::MatrixType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00248">248</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

</div>
</div>
<a id="a806254ac4b5c6f20caa4134a81b2457e" name="a806254ac4b5c6f20caa4134a81b2457e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a806254ac4b5c6f20caa4134a81b2457e">&#9670;&#160;</a></span>QpFloatType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef MatrixType::QpFloatType <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::QpFloatType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00249">249</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a24063221b317718fb10aa445b2fc8d76" name="a24063221b317718fb10aa445b2fc8d76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24063221b317718fb10aa445b2fc8d76">&#9670;&#160;</a></span>CSVMProblem() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::CSVMProblem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a> &amp;&#160;</td>
          <td class="paramname"><em>quadratic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; unsigned int &gt; const &amp;&#160;</td>
          <td class="paramname"><em>labels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>C</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Setup only using kernel matrix, labels and regularization parameter. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00252">252</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a83d760d8d7cb69a76756cf8b6a5db469">shark::CSVMProblem&lt; MatrixT &gt;::diagonal</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#ab8b41a5112634a8e39b6f31a71811f92">shark::CSVMProblem&lt; MatrixT &gt;::dimensions()</a>, <a class="el" href="group__shark__globals.html#ga0ea72a74a21d5ff59772516b83c4a58b">shark::Data&lt; Type &gt;::element()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a1939be3c160d60bdad3319d2ed82a7e5">shark::CSVMProblem&lt; MatrixT &gt;::linear</a>, <a class="el" href="group__shark__globals.html#ga814e8b0028cc90dd2af69805e8f8a04d">shark::Data&lt; Type &gt;::numberOfElements()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#acaa712b9668b0d27820b0fb274e76d10">shark::CSVMProblem&lt; MatrixT &gt;::permutation</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">shark::CSVMProblem&lt; MatrixT &gt;::quadratic</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a601a22cd57543675bacf599f9cd1fc7c" name="a601a22cd57543675bacf599f9cd1fc7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a601a22cd57543675bacf599f9cd1fc7c">&#9670;&#160;</a></span>CSVMProblem() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::CSVMProblem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a> &amp;&#160;</td>
          <td class="paramname"><em>quadratic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; unsigned int &gt; const &amp;&#160;</td>
          <td class="paramname"><em>labels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>regularizers</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Setup using kernel matrix, labels and different regularization parameters for positive and negative classes. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00274">274</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a83d760d8d7cb69a76756cf8b6a5db469">shark::CSVMProblem&lt; MatrixT &gt;::diagonal</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#ab8b41a5112634a8e39b6f31a71811f92">shark::CSVMProblem&lt; MatrixT &gt;::dimensions()</a>, <a class="el" href="group__shark__globals.html#ga0ea72a74a21d5ff59772516b83c4a58b">shark::Data&lt; Type &gt;::element()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a1939be3c160d60bdad3319d2ed82a7e5">shark::CSVMProblem&lt; MatrixT &gt;::linear</a>, <a class="el" href="group__shark__globals.html#ga814e8b0028cc90dd2af69805e8f8a04d">shark::Data&lt; Type &gt;::numberOfElements()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#acaa712b9668b0d27820b0fb274e76d10">shark::CSVMProblem&lt; MatrixT &gt;::permutation</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">shark::CSVMProblem&lt; MatrixT &gt;::quadratic</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a2b7aab493bbff7b3308c718c1dcd2370" name="a2b7aab493bbff7b3308c718c1dcd2370"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b7aab493bbff7b3308c718c1dcd2370">&#9670;&#160;</a></span>CSVMProblem() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::CSVMProblem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a> &amp;&#160;</td>
          <td class="paramname"><em>quadratic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector&#160;</td>
          <td class="paramname"><em>linear</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; unsigned int &gt; const &amp;&#160;</td>
          <td class="paramname"><em>labels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>C</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00302">302</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a83d760d8d7cb69a76756cf8b6a5db469">shark::CSVMProblem&lt; MatrixT &gt;::diagonal</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#ab8b41a5112634a8e39b6f31a71811f92">shark::CSVMProblem&lt; MatrixT &gt;::dimensions()</a>, <a class="el" href="group__shark__globals.html#ga0ea72a74a21d5ff59772516b83c4a58b">shark::Data&lt; Type &gt;::element()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a1939be3c160d60bdad3319d2ed82a7e5">shark::CSVMProblem&lt; MatrixT &gt;::linear</a>, <a class="el" href="group__shark__globals.html#ga814e8b0028cc90dd2af69805e8f8a04d">shark::Data&lt; Type &gt;::numberOfElements()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#acaa712b9668b0d27820b0fb274e76d10">shark::CSVMProblem&lt; MatrixT &gt;::permutation</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">shark::CSVMProblem&lt; MatrixT &gt;::quadratic</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4b1679d10868333bf4d4c8b4b4d37ed6" name="a4b1679d10868333bf4d4c8b4b4d37ed6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b1679d10868333bf4d4c8b4b4d37ed6">&#9670;&#160;</a></span>boxMax()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::boxMax </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00330">330</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

</div>
</div>
<a id="ac5abe1188b5f7a69e12248ddf5cc960f" name="ac5abe1188b5f7a69e12248ddf5cc960f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5abe1188b5f7a69e12248ddf5cc960f">&#9670;&#160;</a></span>boxMin()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::boxMin </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00327">327</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

</div>
</div>
<a id="ab8b41a5112634a8e39b6f31a71811f92" name="ab8b41a5112634a8e39b6f31a71811f92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8b41a5112634a8e39b6f31a71811f92">&#9670;&#160;</a></span>dimensions()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::dimensions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00323">323</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">shark::CSVMProblem&lt; MatrixT &gt;::quadratic</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a24063221b317718fb10aa445b2fc8d76">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a601a22cd57543675bacf599f9cd1fc7c">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a2b7aab493bbff7b3308c718c1dcd2370">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, and <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a5a44566d73a4d27244042719707a2779">shark::CSVMProblem&lt; MatrixT &gt;::scaleBoxConstraints()</a>.</p>

</div>
</div>
<a id="af5ac4b6d0fb36dd16b52c733774bbbc0" name="af5ac4b6d0fb36dd16b52c733774bbbc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5ac4b6d0fb36dd16b52c733774bbbc0">&#9670;&#160;</a></span>flipCoordinates()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::flipCoordinates </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>exchange two variables via the permutation </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00351">351</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a9b38b86e0ec6b023f7012940d4176c03">shark::CSVMProblem&lt; MatrixT &gt;::alpha</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a83d760d8d7cb69a76756cf8b6a5db469">shark::CSVMProblem&lt; MatrixT &gt;::diagonal</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a1939be3c160d60bdad3319d2ed82a7e5">shark::CSVMProblem&lt; MatrixT &gt;::linear</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#acaa712b9668b0d27820b0fb274e76d10">shark::CSVMProblem&lt; MatrixT &gt;::permutation</a>, and <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a95ba9ddd48a101f849d216a95a4a34db">shark::CSVMProblem&lt; MatrixT &gt;::quadratic</a>.</p>

</div>
</div>
<a id="a5a44566d73a4d27244042719707a2779" name="a5a44566d73a4d27244042719707a2779"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a44566d73a4d27244042719707a2779">&#9670;&#160;</a></span>scaleBoxConstraints()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::scaleBoxConstraints </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>factor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>variableScalingFactor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Scales all box constraints by a constant factor and adapts the solution by scaling it by the same factor. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00365">365</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a9b38b86e0ec6b023f7012940d4176c03">shark::CSVMProblem&lt; MatrixT &gt;::alpha</a>, and <a class="el" href="classshark_1_1_c_s_v_m_problem.html#ab8b41a5112634a8e39b6f31a71811f92">shark::CSVMProblem&lt; MatrixT &gt;::dimensions()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a9b38b86e0ec6b023f7012940d4176c03" name="a9b38b86e0ec6b023f7012940d4176c03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b38b86e0ec6b023f7012940d4176c03">&#9670;&#160;</a></span>alpha</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::alpha</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Solution candidate. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00341">341</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_s_v_m_problem.html#af5ac4b6d0fb36dd16b52c733774bbbc0">shark::CSVMProblem&lt; MatrixT &gt;::flipCoordinates()</a>, and <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a5a44566d73a4d27244042719707a2779">shark::CSVMProblem&lt; MatrixT &gt;::scaleBoxConstraints()</a>.</p>

</div>
</div>
<a id="a83d760d8d7cb69a76756cf8b6a5db469" name="a83d760d8d7cb69a76756cf8b6a5db469"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83d760d8d7cb69a76756cf8b6a5db469">&#9670;&#160;</a></span>diagonal</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::diagonal</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>diagonal matrix entries The diagonal array is of fixed size and not subject to shrinking. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00345">345</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a24063221b317718fb10aa445b2fc8d76">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a601a22cd57543675bacf599f9cd1fc7c">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a2b7aab493bbff7b3308c718c1dcd2370">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, and <a class="el" href="classshark_1_1_c_s_v_m_problem.html#af5ac4b6d0fb36dd16b52c733774bbbc0">shark::CSVMProblem&lt; MatrixT &gt;::flipCoordinates()</a>.</p>

</div>
</div>
<a id="a1939be3c160d60bdad3319d2ed82a7e5" name="a1939be3c160d60bdad3319d2ed82a7e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1939be3c160d60bdad3319d2ed82a7e5">&#9670;&#160;</a></span>linear</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::linear</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Linear part of the problem. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00338">338</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a24063221b317718fb10aa445b2fc8d76">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a601a22cd57543675bacf599f9cd1fc7c">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a2b7aab493bbff7b3308c718c1dcd2370">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, and <a class="el" href="classshark_1_1_c_s_v_m_problem.html#af5ac4b6d0fb36dd16b52c733774bbbc0">shark::CSVMProblem&lt; MatrixT &gt;::flipCoordinates()</a>.</p>

</div>
</div>
<a id="acaa712b9668b0d27820b0fb274e76d10" name="acaa712b9668b0d27820b0fb274e76d10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acaa712b9668b0d27820b0fb274e76d10">&#9670;&#160;</a></span>permutation</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::size_t&gt; <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::permutation</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>permutation of the variables alpha, gradient, etc. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00348">348</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a24063221b317718fb10aa445b2fc8d76">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a601a22cd57543675bacf599f9cd1fc7c">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a2b7aab493bbff7b3308c718c1dcd2370">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, and <a class="el" href="classshark_1_1_c_s_v_m_problem.html#af5ac4b6d0fb36dd16b52c733774bbbc0">shark::CSVMProblem&lt; MatrixT &gt;::flipCoordinates()</a>.</p>

</div>
</div>
<a id="a95ba9ddd48a101f849d216a95a4a34db" name="a95ba9ddd48a101f849d216a95a4a34db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95ba9ddd48a101f849d216a95a4a34db">&#9670;&#160;</a></span>quadratic</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_s_v_m_problem.html#ae00fca2fe283929b4eaf80ca74fc4eeb">MatrixType</a>&amp; <a class="el" href="classshark_1_1_c_s_v_m_problem.html">shark::CSVMProblem</a>&lt; MatrixT &gt;::quadratic</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>representation of the quadratic part of the objective function </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00335">335</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a24063221b317718fb10aa445b2fc8d76">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a601a22cd57543675bacf599f9cd1fc7c">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#a2b7aab493bbff7b3308c718c1dcd2370">shark::CSVMProblem&lt; MatrixT &gt;::CSVMProblem()</a>, <a class="el" href="classshark_1_1_c_s_v_m_problem.html#ab8b41a5112634a8e39b6f31a71811f92">shark::CSVMProblem&lt; MatrixT &gt;::dimensions()</a>, and <a class="el" href="classshark_1_1_c_s_v_m_problem.html#af5ac4b6d0fb36dd16b52c733774bbbc0">shark::CSVMProblem&lt; MatrixT &gt;::flipCoordinates()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/QP/<a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
